<!--
 * @Description: 超出部分显示方式
 * @Author: zzj
 * @Date: 2021-08-16 21:25:21
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-16 21:47:13
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>overflow</title>
    <style>
        .outer{
            width: 500px;
            height: 500px;
            background-color: blue;
            margin: 0 auto;
            overflow: hidden;
        }
        .outer > .inner{
            width: 1000px;
            height: 1000px;
            background-color: coral;
        }
        input:active{
            border-color: coral;
            outline-color: cyan;
            outline-width: 2px;
            outline-style: solid;
            outline-offset: 1px;
        }
    </style>
</head>
<body>
    <input type="text">
    <div class="outer">
        <div class="inner"></div>
    </div>
</body>
</html>